package com.zou.practice.rpc;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * Rpc功能测试
 *
 * @author zou
 */
public class ServerTest {

    public static void main(String[] args) {
        Map<String, Object> servicePool = new HashMap<>();
        servicePool.put("com.rpc.service.HelloService", new HelloServiceImpl());
        RpcServer server = new RpcServer(servicePool, 4, 4321);
        try {
            server.service();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}